package com.theaf.core.repo.specification;

/**
 * @Author:songwenke
 * @Description:SQL语句中的参数值，以区别字段或表达式
 * @Date:create in 13:52 2018/4/4
 * @Modified By:
 **/
public class SqlValue {
    private Object value;
    private SqlValue(Object value){
        this.value = value;
    }
    public static Object parse(Object v){
        if(v instanceof String){
            return new SqlValue(v);
        }else {
            return v;
        }
    }
    public Object getValue(){
        return value;
    }
    public boolean isNull(){
        return value==null||"".equals(value);
    }
}
